﻿<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	xmlns:xs="http://www.w3.org/2001/XMLSchema"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:nwisdocs="http://wales.nhs.uk/nwis/docs"
	exclude-result-prefixes="xs xsi">

  <xsl:template match="nwisdocs:Treatments">


    <xsl:choose>
      <xsl:when test="count(./*) &gt; 0">
        <div class="boxed-section" id="{local-name()}">
          <h2>Treatment, operations and procedures</h2>
          <div class="inline-content">
            <ul>
              <xsl:for-each select="nwisdocs:Treatment">
                <li>
                  <xsl:value-of select="nwisdocs:Narrative"/>
                </li>
              </xsl:for-each>
            </ul>
          </div>
        </div>
      </xsl:when>
    </xsl:choose>
    
    
    
   
  </xsl:template>

</xsl:stylesheet>
